home *** CD-ROM | disk | FTP | other *** search
- Path: fohnix.metronet.com!not-for-mail
- From: milam@fohnix.metronet.com (Stan Milam)
- Newsgroups: comp.lang.c
- Subject: Re: File Size!
- Date: 23 Jan 1996 15:39:14 -0600
- Organization: Texas Metronet, Inc (login info (214/488-2590 - 817/571-0400))
- Message-ID: <4e3ki2$qkj@fohnix.metronet.com>
- References: <4e11ph$733@hammerhead.dadd.ti.com>
- NNTP-Posting-Host: fohnix.metronet.com
- X-Newsreader: TIN [version 1.2 PL2]
-
- Sudheer Vemulapalli (sudheer@dadd.ti.com) wrote:
- : Hello Netters,
-
- : Is there a simple way to find the exact size of a file. I would like to know of
- : a way to do it other than using ls -l and getting the size field from the
- : output. If there is a UNIX system call or somefunction that returns the file
- : size please let me know.
-
- : Thankx in advance.
-
- : --
- : Sudheer K. Vemulapalli
-
- Look at the stat() system call. This will give you more inforation about a
- file than you will know what do with. This is what the ls command uses to get
- all the file information it displays.
-
- Regards, Stan Milam.
-
-